﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace TravelWeb.Models
{
    [Bind(Exclude = "SupplierID")]
    public class Supplier
    {
        [ScaffoldColumn(false)]
        public int SupplierID { get; set; }
        [Required(ErrorMessage = "Supplier Name is required")]
        [DisplayName("Supplier Name")]
        [StringLength(160)]
        public String SupplierName { get; set; }
        [Required(ErrorMessage = "Supplier Type is required")]
        [DisplayName("Supplier Type")]
        [StringLength(160)]
        public String SupplierType { get; set; }
        [Required(ErrorMessage = "Address is required")]
        [StringLength(70)]
        public String Address { get; set; }
        [Required(ErrorMessage = "Phone is required")]
        [StringLength(24)]
        public String Phone { get; set; }
        [ScaffoldColumn(false)]
        public String Status { get; set; }

        public List<Supplier> Suppliers { get; set; }
    }
}